<h2>Property filter</h2>
<div class="property-filter widget">
<div class="content">
<form method="get" action="?" class="form-search-box">
<div class="sale control-group">
<div class="controls"><label class="radio" for="inputSale"> <input
	type="radio" name="propertyfor" id="forsaleorforrent1" value="sale"
	<?php if($propertyfor == "sale") {echo 'checked="checked"';} ?>>&nbsp;<?php echo $text_property_forsale; ?>
</label></div>
<!-- /.controls --></div>
<!-- /.control-group -->
<div class="rent control-group">
<div class="controls"><label class="radio" for="inputRent"> <input
	type="radio" name="propertyfor" id="forsaleorforrent2" value="rent"
	<?php if($propertyfor == "rent") {echo 'checked="checked"';} ?>>&nbsp;<?php echo $text_property_forlease; ?>
</label></div>
<!-- /.controls --></div>
<!-- /.control-group -->
<div class="type control-group"><label class="control-label"
	for="inputType"> <?php echo $text_property_classification; ?> </label>
<div class="controls"><select name="ddlPropertyClss"
	id="ddlPropertyClss" class="span12">
	<option selected="selected" value=""><?php echo $text_all; ?></option>
	<?php foreach($dd_propertycategory as $val) { ?>
	<option value="<?php echo $val->Type; ?>"
	<?php if($propertytypeclss == $val->Type) {echo 'selected="selected"';} ?>><?php echo $val->Type; ?></option>
	<?php } ?>
</select></div>
<!-- /.controls --></div>
<!-- /.control-group -->

<div class="type control-group"><label class="control-label"
	for="inputType"> <?php echo $text_propertytype; ?> </label>
<div class="controls"><select name="ddlPropertyType"
	id="ddlPropertyType" class="span12">
	<option value="" selected="selected"><?php echo $text_all; ?></option>
</select></div>
<!-- /.controls --></div>
<!-- /.control-group -->
<div class="location control-group"><label class="control-label"
	for="inputCity"> City </label>
<div class="controls city_advance_search">
<div class="row-fluid">
<div class="span12"><span
	class="selections search_area_selections2 span12"
	id="a_search_city_area_advanced_selections"><span><?php echo $text_select_city; ?></span></span>
</div>
</div>
<div id="ddlCity" class="row-fluid search_cityareapanel selectpanel"
	style="display: none;">
<div class="span12"><label
	for="city_<?php echo $this->config->item('market'); ?>"
	class="all_cities"> <input type="checkbox" value
	id="city_<?php echo $this->config->item('market'); ?>"
	class="formcheck childCheckBoxForCity"
	onclick="sbRestArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"
	<?php if(!is_array($cities)) {echo 'checked="checked"';} ?>> <span
	style="cursor: default;"
	onclick="sbRestArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"><?php echo $text_all; ?></span>
</label> <?php foreach ($lkup_cities as $city) { ?> <label
	for="city_<?php echo $city->City_ID; ?>" class="child_city"> <input
	type="checkbox" value="<?php echo $city->City_ID; ?>"
	<?php if(is_array($cities) && in_array($city->City_ID, $cities)){echo 'checked="checked"';}?>
	id="sbChks<?php echo $city->City_ID; ?>"
	class="formcheck childCheckBoxForCity" name="cities[]"
	onclick="sbPopulateArea('search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')">
<span style="cursor: default;" class="sbChks"
	onclick="sbCheckUncheck('sbChks<?php echo $city->City_ID; ?>','search_area_selections2','childCheckBoxForCity','<?php echo $text_cities_selected; ?>')"><?php echo $city->Name; ?></span>
</label> <?php } ?></div>
</div>
</div>
<!-- /.controls --></div>
<!-- /.control-group -->
<div class="location control-group" id="Add_Your_Property_Location"><label
	class="control-label" for="inputLocation"> Location </label>
<div id="location_advance_search"
	class="controls location_advance_search">
<div id="ddlLocation_Heading" class="row-fluid">
<div class="span12"><span
	class="selections search_location_area_selections2 span12"
	id="a_search_location_area_advanced_selections"><span><?php echo $text_select_location; ?></span></span>
</div>
</div>
<div id="ddlLocation"
	class="row-fluid search_locationareapanel selectpanel"
	style="display: none;"></div>
</div>
</div>
<!-- /.location_advance_search -->

<div class="location control-group" id="Add_Your_Property_SubArea"><label
	class="control-label" for="inputSubArea"> Sub Area </label>
<div id="subarea_advance_search" class="controls subarea_advance_search">
<div id="ddlSubArea_Heading" class="row-fluid">
<div class="span12"><span
	class="selections search_subarea_area_selections2 span12"
	id="a_search_subarea_area_advanced_selections"><span><?php echo $text_select_subarea; ?></span></span>
</div>
</div>
<div id="ddlSubArea" class="row-fluid search_subareaareapanel"
	style="display: none;"></div>
</div>
<!-- subarea_advance_search --></div>
<!-- /.control-group -->

<div class="beds control-group"><label class="control-label"
	for="inputBeds"> <?php echo $text_bedrooms; ?> </label>
<div class="controls"><select name="bedrooms" id="bedrooms"
	class="span12">
	<option selected="selected" value=""><?php echo $text_all; ?></option>
	<?php for ($i = 1; $i < 10; $i++) { ?>
	<option value="<?php echo $i; ?>"
	<?php if($i == $bedrooms) {echo 'selected="selected"';} ?>><?php echo $i; ?></option>
	<?php } ?>
</select></div>
<!-- /.controls --></div>
<!-- /.control-group -->

<div class="baths control-group"><label class="control-label"
	for="inputBaths"> <?php echo $text_bathrooms; ?> </label>
<div class="controls"><select name="bathrooms" id="bathrooms"
	class="span12">
	<option selected="selected" value=""><?php echo $text_all; ?></option>
	<?php for ($i = 1; $i < 10; $i++) { ?>
	<option value="<?php echo $i; ?>"
	<?php if($i == $bathrooms) {echo 'selected="selected"';} ?>><?php echo $i; ?></option>
	<?php } ?>
</select></div>
<!-- /.controls --></div>
<!-- /.control-group -->

<div class="price-from control-group"><label class="control-label"
	for="inputPriceFrom"> Price from </label>
<div class="controls"><input type="text" id="inputPriceFrom"
	name="price_min" value="<?php echo $price_min; ?>"></div>
<!-- /.controls --></div>
<!-- /.control-group -->

<div class="price-to control-group"><label class="control-label"
	for="inputPriceTo"> Price to </label>
<div class="controls"><input type="text" id="inputPriceTo"
	name="price_max" value="<?php echo $price_max; ?>"></div>
<!-- /.controls --></div>
<!-- /.control-group -->

<div class="price-value"><span class="from"></span><!-- /.from --> - <span
	class="to"></span><!-- /.to --></div>
<!-- /.price-value -->

<div class="price-slider"></div>
<!-- /.price-slider -->

<div class="size-from control-group"><label class="control-label"
	for="inputSizeFrom"> Size from </label>
<div class="controls"><input type="text" id="inputSizeFrom"
	name="size_min" value="<?php echo $size_min; ?>"></div>
<!-- /.controls --></div>
<!-- /.control-group -->

<div class="size-to control-group"><label class="control-label"
	for="inputSizeTo"> Size to </label>
<div class="controls"><input type="text" id="inputSizeTo"
	name="size_max" value="<?php echo $size_max; ?>"></div>
<!-- /.controls --></div>
<!-- /.control-group -->

<div class="size-value"><span class="from"></span><!-- /.from --> - <span
	class="to"></span><!-- /.to --></div>
<!-- /.size-value -->

<div class="size-slider"></div>
<!-- /.price-slider -->

<div class="keyword control-group"><input type="text" class="span12"
	placeholder="<?php echo $text_keyword_of_properties; ?>" id="keyword"
	name="keyword" value="<?php echo $keyword; ?>"></div>
<!-- /.control-group -->

<div class="form-actions"><input type="submit" value="Filter now!"
	class="btn btn-primary btn-large"></div>
<!-- /.form-actions --></form>
</div>
<!-- /.content --></div>
<!-- /.property-filter -->
